<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>public/styles/category.css" />
<div class="wrap cfix">
  <div class="main-cont innerWrap">
    <div id="content">
    	<div class="strap multimedia" style="margin: 10px 0px 0px 0px;border: none;padding: 10px 0px 0px 0px;">
			<header class="cf" style="margin-bottom:0px;">
			<h2><?php echo $category['names']; ?></h2>
			<ul class="nav">
				<li ><a href="<?php echo base_url(); ?>cau-hoi-moi-nhat.html">Câu hỏi mới nhất</a></li>
				<li ><a href="<?php echo base_url(); ?>cau-hoi-nhieu-tra-loi-nhat.html">Nhiều trả lời nhất</a></li>
				<li ><a href="<?php echo base_url(); ?>cau-hoi-hay-nhat.html">Câu hỏi hay nhất</a></li>
                <li ><a style="color:#f00;font-weight:bold;" href="<?php echo base_url(); ?>dang-nhap.html">Tài khoản</a></li>
			</ul>
			</header>
		</div>
        
      <section class="top-page">
        <section id="WeekendStrip">
          <div class="weekender-col-1">
            <article class="article feature hero-landscape"> <a href="<?php echo $links; ?>" title="<?php echo $category['names']; ?>"><img src="<?php echo base_url()."uploads/cate/".$category['images']; ?>" width="420" height="237" alt="<?php echo $category['names']; ?>" title="<?php echo $category['names']; ?>"></a>
              <div class="wof">
                <h3><a href="<?php echo $links; ?>" title="<?php echo $category['names']; ?>"><?php echo $category['names']; ?></a></h3>
                <p><?php echo $category['info']; ?></p>
              </div>
            </article>
          </div>
          <?php $j = 2; foreach($listcago as $cagorie){ ?>
          <div class="weekender-col-<?php echo $j; ?> <?php if($j == 4){ echo "last";}?>">
            <article class="liftout article feature <?php if($j == 2){ echo "image-only";}?>"><a href="<?php echo $category['rewrite']."/".$cagorie['rewrite']; ?>.html" title=""><img src="<?php echo base_url()."uploads/cate/thumb/".$cagorie['image']; ?>" alt=""></a>
              <div class="wof">
                <h3><a href="<?php echo $category['rewrite']."/".$cagorie['rewrite']; ?>.html" title=""><?php echo $cagorie['name']; ?></a></h3>
                <p><?php echo $cagorie['shortinfo']; ?></p>
              </div>
            </article>
          </div>
          <?php $j++; } ?>
          <div style="clear:left"></div>
        </section>
        <div class="col last" style="width:250px">
        	<?php $this->load->view("layouts/question"); ?>
        </div>
        <section id="Newswell">
          <div class="col strap personalised" style="width:160px;margin-right:17px">
            <section id="Timeout">
              <article class="article lifestyle clippingArea clippingAction"> <a href="#" title=""><img src="<?php echo base_url();?>public/images/th-495359715-140x93.jpg" width="140" height="93" alt=""></a>
                <div>
                  <h3><a href="#" title="">Too far? Rihanna bares (nearly) all on the red carpet</a></h3>
                  <div class="article-meta"> <em class="access">Contains:</em> <span class="icon poll" title="Article contains a poll">poll</span> <span class="icon gallery" title="Photo gallery">gallery</span> </div>
                </div>
              </article>
              <article class="article world clippingArea clippingAction"> <a href="#" title=""><img src="<?php echo base_url();?>public/images/th-sunbather-140x93.jpg" width="140" height="93" alt=""></a>
                <div>
                  <h3><a href="#" title="">Lucky escape: Plane narrowly misses beach sunbather</a></h3>
                  <div class="article-meta"> <em class="access">Contains:</em> <span class="icon video" title="This article contains a video.">This article contains a video.</span> </div>
                </div>
              </article>
              <article class="article entertainment clippingArea clippingAction"> <a href="#" title=""><img src="<?php echo base_url();?>public/images/Tyrion-thrones-th-140x93.jpg" width="140" height="93" alt=""></a>
                <div>
                  <h3><a href="#" title="">Game of Thrones shocker: how much can viewers stand?</a></h3>
                  <div class="article-meta"> <em class="access">Contains:</em> <a href="#"><span title="comments" class="icon comments">total comments</span>67</a> </div>
                </div>
              </article>
              <article class="article domain clippingArea clippingAction"> <a href="#" title=""><img src="<?php echo base_url();?>public/images/20110131943pio24144319--1-_320-140x93.jpg" width="140" height="93" alt=""></a>
                <div>
                  <h3><a href="#" title="">Swimming in it: Sydney mansion sells for $30 million</a></h3>
                  <div class="article-meta"> <em class="access">Contains:</em> <span class="icon gallery" title="Photo gallery">gallery</span> </div>
                </div>
              </article>
            </section>
            <section class="strap invert feed" id="LatestNews">
              <header class="cf">
                <h2> <a href="#">Latest</a> </h2>
              </header>
              <dl class="latest">
                <dt>2:30am</dt>
                <dd> <a href="#" title="Aust growth driven by exports in 2014">Aust growth driven by exports in 2014</a> </dd>
                <dt>2:00am</dt>
                <dd> <a href="#" title="Future unclear in Vic political crisis">Future unclear in Vic political crisis</a> </dd>
                <dt>2:00am</dt>
                <dd> <a href="#" title="Hopeful tone for big SBY-Abbott talks">Hopeful tone for big SBY-Abbott talks</a> </dd>
              </dl>
            </section>
          </div>
          <?php $this->load->library("string"); ?>
          <div class="col strap breaking-news" style="width:492px">
            <div class="homelink" style="height:40px">&spades; <a href="<?php echo base_url(); ?>">Trang chủ</a> &raquo; <a href="<?php echo $category['rewrite']; ?>.html" title="<?php echo $category['names']; ?>"><?php echo $category['names']; ?></a> </div>
            <?php if(isset($results)){foreach($results as $question){ ?>
            <article class="article lead clippingArea clippingAction">
              <h3><a href="<?php echo base_url().$question['rewrite']."-".$question['id']; ?>.html" title="<?php echo $question['title']; ?>"><?php echo $question['title']; ?></a></h3>
              <a href="#" title=""><img src="<?php echo base_url()."uploads/users/thumb/".$question['image']; ?>" width="50" height="60" alt="<?php echo $question['username']; ?>" title="<?php echo $question['username']; ?>" /></a>
              <div class="wof" style="width:85%"> <span class="author"> <a href="#" title=""><?php echo $question['username']; ?></a> </span>
                <time datetime="5:43pm">5:43pm</time>
                <p><span title="trả lời" class="icon comments">trả lời</span><?php echo $question['total']; ?></p><br />
                <?php $shortquestion = $this->string->cutstr($question['info'],0,200); ?>
                <p><?php echo $shortquestion; ?></p>
              </div>
            </article>
            <?php } } ?>
            <div id="pagination" style="margin:10px 0px"><?php echo $this->pagination->create_links(); ?></div>
          </div>
        </section>
        <div class="col last" style="width:250px">
          <div id="adspot-300x250-pos-1" class="ad" style="width:250px"> 
          	<img src="<?php echo base_url();?>public/images/adsense-300x250.gif" width="250" alt="" /> 
          </div>
        </div>
        <div class="col last strap" style="width:250px">
          <div class="ad" style="width:250px"> <img src="<?php echo base_url();?>public/images/ads.gif" width="250" alt="" /> </div>
        </div>
      </section>
      <section class="strap">
        <div id="adspot-728x90-pos-1" class="ad" style='display:none;'></div>
      </section>
    </div>
  </div>
</div>
